﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DemoTileDesktop
{
    /// <summary>
    /// LiveTile.xaml の相互作用ロジック
    /// </summary>
    public partial class LiveTile : UserControl, ILiveTile
    {
        public LiveTile()
        {
            InitializeComponent();
        }

        public TextBlock TBC01R0
        {
            get { return this.textBoxC01R0; }
        }

        public TextBlock TBC01R1
        {
            get { return this.textBoxC01R1; }
        }

        public TextBlock TBC0R0
        {
            get { return this.textBoxC0R0; }
        }

        public TextBlock TBC0R1
        {
            get { return this.textBoxC0R1; }
        }

        public TextBlock TBC1R0
        {
            get { return this.textBoxC1R0; }
        }

        public TextBlock TBC1R1
        {
            get { return this.textBoxC1R1; }
        }

        public Image ImageLeft
        {
            get { return this.imageLeft; }
        }

        public Canvas CanvasMain
        {
            get { return this.canvasMain; }
        }

        public new void Focus()
        {
            throw new NotImplementedException();
        }

        public void Select()
        {
            if (OwnerApp != null)
            {
                OwnerApp.Start();
            }
        }

        private ITileApp ownerApp;
        public ITileApp OwnerApp
        {
            get
            {
                return ownerApp;
            }
            set
            {
                ownerApp = value;
            }
        }
    }
}
